package com.eclipse.e0114_java8.课堂案列;

import java.util.ArrayList;
import java.util.List;

public class Test5_时间类 {

	public static void main(String[] args) {
		List<String> list = new ArrayList<>();
		for (int i = 0; i < 1000000; i++) {
			list.add(Math.random() * 1000 + "");
		}

		// System.out.println(list.stream().count());

		long start = System.nanoTime();

		long count = list.stream().parallel().sorted().filter(t -> t.length() < 3).count();

		System.out.println(System.nanoTime() - start);

	
		
		
		
		
	

	}

}
